@import "less/css3";
@import "less/reset";
@import "less/z";

.reset();
body{
  background: #bbada0;
  width: 100%;
  height: 100%;
}
.snake_game {
  outline: none;
  header {
    display: flex;
    justify-content: center;
    //align-items: center;
    margin: 0 auto;
    font-size: 20px;
    font-weight: 600;
    color:#faf8ef;
    height: 30px;
    line-height: 30px;
  }
  .left {
    display: block;
    .fl();
    width: 20%;
    margin: 50px 30px;
    @media screen and (max-width: 980px){
      display: none;
    }
    .title {
      color: #152077;
      font-size: 20px;
      margin: 20px auto;
      width: 80%;
    }
    .rules {
      font-size: 14px;
      line-height: 30px;
      color:#FB1801;
    }
  }
  .game_body {
    width: 600px;
    height: 600px;
    margin: 0 auto;
    background: rgba(238, 228, 218, 0.35);
    position: relative;
    .cell {
      width: 15px;
      height: 15px;
      position: absolute;
      .fl();
    }
    .food_cell {
      background: #0b3;
      border-radius: 7.5px;
      box-shadow: 0 0 2.5px #0b3;
    }
    .snake_cell {
      background: #39c;
      box-shadow: 0 0 2.5px #39c;
    }
    .bullet_cell {
      background: #F5EF06;
      box-shadow: 0 0 2.5px #F5EF06;
      border-radius: 7.5px;
    }
    .monster_cell {
      background: #FB1801;
      box-shadow: 0 0 2.5px #FB1801;
      border-radius: 7.5px;
    }
  }
  .game_over {
    z-index: 2;
    position:absolute;
    top:40%;
    left:50%;
    transform:translate(-50%,-50%);
    padding: 10px;
    font-size: 25px;
    background: rgba(215, 212, 202, 0.56);
  }
  >button {
    z-index: 2;
    position:absolute;
    top:60%;
    left:50%;
    transform:translate(-50%,-50%);
    padding: 4px;
    font-size: 20px;
    background: rgba(215, 212, 202, 2.56);
    border:none;
    border-radius: 3px;
  }
  .reStart{
    z-index: 2;
    position: absolute;
    top:40%;
    left:50%;
    transform: translate(-50%,-50%);
    padding:20px;
    font-size: 18px;
    color:#FB1801;
    background:rgba(215, 212, 202, 0.9);
    @media screen and (max-width: 980px){
      padding: 2%;
    }
    button{
      background: rgba(238, 228, 218, 0.35);
      padding:3px;
      border-radius: 2px;
      border:1px solid rgba(238,228,218,0.4);
      margin:36px 13% 15px;
      @media screen and (max-width: 980px){
        margin: 20px 13% 10px;
      }
    }
  }
  footer{
    display: flex;
    justify-content: space-around;
    width:50%;
    margin:0 auto;
    button{
      flex:1;
      margin:15px 5%;
      padding:3px;
      border:1px solid rgba(238,228,218,0.4);
      background: rgba(238, 228, 218, 0.35);
      border-radius: 2px;
      &:focus{
        border:1px solid reba(238,228,218,0,7);
      }
    }
  }
}
